package com.atcc.test.designmodel.abstractfactory;

/**
 * 
 * 抽象工厂模式测试端
 * @author Administrator
 * 应用场景:一系列产品较为固定的生产公司
 *
 */
public class Client {
	
	public static void main(String[] args) {
		System.out.println("=======小米手机产品=======");
		XiaomiFactory xiaomi = new XiaomiFactory();
		XiaomiPhone xiaomiPhone = (XiaomiPhone) xiaomi.producePhone();
		xiaomiPhone.startup();
		xiaomiPhone.shutdown();
		System.out.println("=======苹果电脑产品=======");
		AppleFactory appFactory = new AppleFactory();
		AppleComputer appleComputer = (AppleComputer) appFactory.proComputer();
		appleComputer.startup();
		appleComputer.shutdown();
	}

}
